//
//  PgyUtil.m
//  GuiJuWo
//
//  Created by chenguibang on 16/3/29.
//  Copyright © 2016年 chenguibang. All rights reserved.
//

#import "PgyUtil.h"

@implementation PgyUtil

+(PgyUtil*)initPgyUtil{
    static dispatch_once_t onceToken;
    static PgyUtil *shareUtils;
    dispatch_once(&onceToken, ^{
        shareUtils = [[self alloc]init];
    });
    return shareUtils;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        [[PgyManager sharedPgyManager] startManagerWithAppId:@"25b929dae56c204113a28f48e714df6b"];
        //启动更新检查SDK
        [[PgyUpdateManager sharedPgyManager] startManagerWithAppId:@"25b929dae56c204113a28f48e714df6b"];
        

    }
    return self;
}
+(void)checkUpdata{
     [[PgyUpdateManager sharedPgyManager] checkUpdate];
}
+(void)reportException:(NSException *)exception{
    [[PgyManager sharedPgyManager] reportException:exception];
}
+(void)showFeedBackView{
    [[PgyManager sharedPgyManager] showFeedbackView];
}

+(void)setEnableFeedback:(BOOL)enable{
    [[PgyManager sharedPgyManager] setEnableFeedback:YES];
}
@end
